package com.butterfly1.platform.test.common;
/**
 * bean 工厂
 * @author fox
 * @version 1.0 2013-11-5
 *
 */
public class BeanFactory {
	/**
	 * 获取bean实例
	 * @param allClassName
	 * 						全类名
	 * @return Class	
	 * 				 类实例
	 * @throws ClassNotFoundException 
	 * @throws IllegalAccessException 
	 * @throws InstantiationException 
	 */
	public static Object getBean(String allClassName) throws InstantiationException, IllegalAccessException, ClassNotFoundException{
			return Class.forName(allClassName).newInstance();
	}
}
